package com.example.administrator.rxjavadiydemo.api;



import com.example.administrator.rxjavadiydemo.bean.HomeBean;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;
import rx.Observable;

/**
 * Created by lw on 2017/11/19.
 */

public interface ServerApi {
//    http://api.juheapi.com/japi/toh?key=您申请的KEY&v=1.0&month=11&day=1
    //域名
    @GET("api/public")
    Call<String> getHomeData(@Query("service") String version);

    @GET("sections")
    Observable<HomeBean> getColumnData();


}
